import request from "@/utils/request";

// 获取列表
export function getAllList(query) {
  return request({
    url: "/fxfzaqbz/data/getAllDisposeManager",
    method: "get",
    params: query,
  });
}

// 查询
export function getDisposeManager(id) {
    return request({
      url: '/fxfzaqbz/data/getDisposeManager/' + id,
      method: 'get'
    })
  }

// 上传
export function saveDisposeManager(data) {
    return request({
      url: "/fxfzaqbz/data/saveDisposeManager",
      method: "post",
      data: data,
    });
  }
  
// 修改
export function updateDisposeManager(data) {
    return request({
      url: '/fxfzaqbz/data/updateDisposeManager',
      method: 'post',
      data: data
    })
}

// 删除
export function delDisposeManager(id) {
  return request({
    url: '/fxfzaqbz/data/delDisposeManager/' + id,
    method: 'post'
  })
}

// 获取标签
export function getAllTag(query) {
    return request({
      url: "/fxfzaqbz/data/getDisposeAllLabel",
      method: "get",
      params:query
    });
  }

// 获取子标签
export function getAllSubTag(query) {
    return request({
      url: "/fxfzaqbz/data/getDisposeAllSubtitle",
      method: "get",
      params: query,
    });
  }

// 添加标签
export function saveTag(data) {
    return request({
      url: "/fxfzaqbz/data/saveDisposeLabel",
      method: "post",
      data: data,
    });
  }

// 添加子标签
export function saveSubTag(data) {
    return request({
      url: "/fxfzaqbz/data/saveDisposeSubtitle",
      method: "post",
      data: data,
    });
  }

// 标签删除
export function delTag(id) {
    return request({
      url: '/fxfzaqbz/data/delDisposeLabel/' + id,
      method: 'post'
    })
  }

// 子标签删除
export function delSubTag(id) {
    return request({
      url: '/fxfzaqbz/data/delDisposeSubtitle/' + id,
      method: 'post'
    })
}
  
